$OpenBSD: patch-scripts_mysqld_safe_sh,v 1.7 2015/04/09 06:58:12 giovanni Exp $
--- scripts/mysqld_safe.sh.orig	Wed Feb 25 10:40:55 2015
+++ scripts/mysqld_safe.sh	Mon Mar  2 23:11:35 2015
@@ -25,7 +25,8 @@ numa_interleave=0
 logging=init
 want_syslog=0
 syslog_tag=
-user='@MYSQLD_USER@'
+user='_mysql'
+group='_mysql'
 pid_file=
 err_log=
 err_log_base=
@@ -646,8 +647,8 @@ then
     echo "Fatal error Can't create database directory '$mysql_unix_port'"
     exit 1
   fi
-  chown $user $mysql_unix_port_dir
-  chmod 755 $mysql_unix_port_dir
+  chown $user:$group $mysql_unix_port_dir
+  chmod 711 $mysql_unix_port_dir
 fi
 
 # If the user doesn't specify a binary, we assume name "mysqld"
